{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=3161
  Verdict: Accepted
}
uses SysUtils, Math;
 
const
	firstV:int64=round(1e12);
 
var
	k,kk,ls,i,ans,hh:int64;
	s:string;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
readln(s);
read(hh);
ans:=0;
i:=0;
ls:=length(s);
while ls>0 do begin
	kk:=pos(' ',s);
	if kk=0 then begin
		k:=strtoint(s);
		s:='';
	end else begin
		k:=strtoint(copy(s,1,kk-1));
		delete(s,1,kk);
	end;
	ls:=length(S);
	inc(i);
	if k<hh then begin
		ans:=i;
		break;
	end;
end;
if ans=0 then ans:=i+1;
write(ans);
end.